package com.studentapp.fragment;


import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.studentapp.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class NewsFragment extends Fragment {
    private static final String TAG = "NewsFragment";

    private WebView webview_news;

    public NewsFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
       View view =  inflater.inflate(R.layout.fragment_news, container, false);
        webview_news = view.findViewById(R.id.webview_news);
        webview_news.getSettings().setJavaScriptEnabled(true);
        webview_news.loadUrl("https://voice.baidu.com/act/newpneumonia/newpneumonia/?from=osari_aladin_top1");

        return view;
    }
}
